import element from '../element';

const Collapse = {
  props:{
    accordion:Boolean
  },
  name:'Collapse',
  mounted(){
    this.$nextTick(() => {
      element.render("collapse");
    });
  },
  render(){
    return (<div class={'layui-collapse'} lay-accordion={this.accordion}>
      {this.$slots.default}
    </div>)
  }
};

export default Collapse;